﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Invoicing.sys
{
    public partial class UserEdit : System.Web.UI.Page
    {

        private string _userid;

        public string Userid
        {
            get { return _userid; }
            set { _userid = value; }
        }


        private ZY.Model.Tab_Userinfo _umodel;

        public ZY.Model.Tab_Userinfo Umodel
        {
            get { return _umodel; }
            set { _umodel = value; }
        }


        private List<ZY.Model.Tab_DeptInfo> _deptList;
        public List<ZY.Model.Tab_DeptInfo> DeptList
        {
            get { return _deptList; }
            set { _deptList = value; }
        }
        private List<ZY.Model.Tab_Poistion> _poistionList;
        public List<ZY.Model.Tab_Poistion> PoistionList
        {
            get { return _poistionList; }
            set { _poistionList = value; }
        }
        private List<ZY.Model.Tab_RoleInfo> _roleList;
        public List<ZY.Model.Tab_RoleInfo> RoleList
        {
            get { return _roleList; }
            set { _roleList = value; }
        }

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {

                #region 定义基础信息
                DeptList = new ZY.BLL.Tab_DeptInfo().GetModelList("");
                PoistionList = new ZY.BLL.Tab_Poistion().GetModelList("");
                RoleList = new ZY.BLL.Tab_RoleInfo().GetModelList("");
                #endregion

                if (Request["uid"]!=null)
                {
                    Umodel = new ZY.BLL.Tab_Userinfo().GetModel(int.Parse(Request["uid"].ToString()));
                    if (Umodel != null)
                    {
                       // Userid = Umodel.uid.ToString();


                        
                    }

                    
                }



            }


        }
    }
}